package com.itheima.demo04;

public class MyThread01 extends Thread{

    public MyThread01() {
    }

    public MyThread01(String name) {
        super(name);//通过super()方法 调用父类Thread的构造方法
    }

    @Override
    public void run() {

        for (int i = 0; i < 100; i++) {
            System.out.println(Thread.currentThread().getName() + "@" + i);
        }

    }
}
